home *** CD-ROM | disk | FTP | other *** search
/ Champak 132 (Alt) / Vol 132.iso / games / 3d_hyper / 3d_hyper.dcr / Scripts_50_Movement Timeout.ls < prev    next >
Encoding:
Text File  |  2011-06-09  |  257 b   |  11 lines

  1. global gRacers, gMovementTime
  2.  
  3. on checkForMovement me
  4.   currTime = the milliSeconds
  5.   timePassed = currTime - gMovementTime
  6.   gMovementTime = the milliSeconds
  7.   repeat with i = 1 to gRacers.count
  8.     gRacers[i].checkNewMovement(timePassed)
  9.   end repeat
  10. end
  11.